import Lazyload from "react-lazyload";
import { Spin } from "antd";
const LazyNewImage = ({src,alt})=>{
    return (
        <div>
            <Lazyload
            height={200}
            offset={200}
            placeholder={
                <div>
                    <Spin size="large"></Spin>
                </div>
            }
            >
                <img src={src} alt={alt} />
            </Lazyload>
        </div>
    )
}

export default LazyNewImage;
